package com.stars;

/**
 * @program: stars
 * @ClassName BeasRest
 * @description:
 * @author: aodi
 * @create: 2024-11-13 16:02
 * @Version 1.0
 */

public class BeasRest {

    private  Integer code ;
    private  String msg ;
    private  Object data ;


    public BeasRest(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public static BeasRest ok(Object data){
        return new BeasRest(200,"success",data);
    }
    public static BeasRest ok( ){
        return new BeasRest(200,"success",null);
    }

    public static BeasRest error(String msg){
        return new BeasRest(400,msg,null);
    }



}
